package com.canyou.archives.model.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 设备分类新增编辑模型
 *
 * @author index
 * @date 2021/12/08 15:42
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "CategoryInportExcelDTO", description = "设备分类导入类")
public class CategoryInportExcelDTO implements Serializable{

    @Excel(name = "分类名称",orderNum = "1")
    @ApiModelProperty(value = "分类名称")
    private String cname;

    @Excel(name = "使用状态",orderNum = "3",replace = {"1_启用","0_未启用"})
    @ApiModelProperty(value = "使用状态：0未启用，1启用")
    private Integer state;

    @Excel(name = "分类排序",orderNum = "2")
    @ApiModelProperty(value = "排序")
    private Integer sort;


}
